//
//  CheckStringTool.swift
//  Edaixi-iOS
//
//  Created by 刘树华 on 2017/11/28.
//  Copyright © 2017年 刘树华. All rights reserved.
//

import Foundation

func validStr(data:Any?)->String{
    
    if let avible = data {
        if let avibleStr = avible as?String {
            if avibleStr != "nil" && avibleStr != "null" && avibleStr != "Null"{
                return avibleStr
            }else{
                return ""
            }
            
        }else{
            return ""
        }
    }else{
        
        return ""
    }
 
}

//func isTelNumber(str:String) -> Bool {
//    
//}

